﻿<%@ Page Title="【积分商城】" Language="C#" MasterPageFile="~/APP_Master/MasterPage_integral_shop.master"
    AutoEventWireup="true" CodeFile="integral_index.aspx.cs" Inherits="integral_index" %>



<%@ Register src="~/APP_Controls/integral/Integral_topNav.ascx" tagname="Integral_topNav" tagprefix="uc2" %>

<%@ Register src="~/APP_Controls/integral/Integral_Red.ascx" tagname="Integral_Red" tagprefix="uc3" %>

<%@ Register src="~/APP_Controls/integral/Integral_Contact.ascx" tagname="Integral_Contact" tagprefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <!--headerTop-->
    <div class="integral_header_top">
        <!--TopNav-->
        <uc2:Integral_topNav ID="Integral_topNav1" runat="server" />
        <!--TopNav-->
        <!--Banner-->
        <div class="integral_banner_index">
        <link rel="stylesheet" type="text/css" href="../css/jquery.jslides.css" media="screen" />
        <script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="../js/jquery.jslides.js"></script>
            <div id="full-screen-slider">
	            <ul id="slides"> 
                    <%if (imglist != null && imglist.Count > 0)
                                  {
                                      foreach (Model.SF_img_info item in imglist)
                                      {%>
		            <li style="background:url('<%=item.img_pic%>') no-repeat center top">
                    <a href="<%=item.url%>" target="_blank"><%=item.img_title%></a></li> 
                    <%}
                                  }
                                  else
                                  { %>
                                  
		<li style="background:url('../images/2015101703.jpg') no-repeat center top"><a href=""></a></li>
                     <%}%> 
	            </ul>
            </div>
        </div>
        <!--Banner-->
    </div>
    <!--headerTop-->
    <!--Area01-->
    <div class="integral_index_area">
        <!--Area01Left-->
        <div class="integral_index_left">
            <h2 class="integral_luckydraw_title">小积分抽大奖</h2>
            <div class="integral_luckydraw_rotarytable">
                <img src="../images/2015101710.jpg" alt="抽大奖大转盘" />
            </div>
            <asp:Button ID="Button1" runat="server" Text="Button" 
                CssClass="integral_luckydraw_btn" onclick="Button1_Click" />
            <h2 class="integral_luckydraw_title2">最新中奖名单</h2>
            <!--LeftFontScroll-->            
            <script type="text/javascript" src="../js/scroll.js"></script>
            <script type="text/javascript">
                $(document).ready(function () {
                    $('.list_lh li:even').addClass('lieven');
                })
                $(function () {
                    $("div.list_lh").myScroll({
                        speed: 40, //数值越大，速度越慢
                        rowHeight: 68 //li的高度
                    });
                });
            </script>
            <div class="box">
	            <div class="bcon">
		            <!-- 代码开始 -->
                    <div class="list_lh">
			            <ul><%if (winlist != null)
                          {
                              foreach (Model.DrawWin model in winlist)
                              {%>
				            <li><%=model.NickName%><%=model.DrawTitle%></li> 
                            <%}
                          } %> 
			            </ul>
                    </div>
		            <!-- 代码结束 -->
	            </div>
            </div>
            <!--LeftFontScroll-->
        </div>
        <!--Area01Left-->
        <!--Area01Right-->
        <div class="integral_index_right">
            <h2 class="integral_index_right_title"><a name="star"></a> 积分换红包</h2>
            <ul class="integral_index_red">
            <%if (proHongbao != null && proHongbao.Rows.Count > 0)
              {
                  for (int i = 0; i < proHongbao.Rows.Count; i++)
                  {%>
                <li>
                    <div class="integral_index_reg_bg"><em><%=proHongbao.Rows[i]["Money"]%></em>元</div>
                    <p class="integral_p"><%=proHongbao.Rows[i]["Title"]%></p>
                    <dl>
                        <dt><%=proHongbao.Rows[i]["Price"]%></dt>
                        <dd>剩余<%=proHongbao.Rows[i]["KuCun"]%>个</dd>
                    </dl>
                    <%if (Convert.ToInt16(proHongbao.Rows[i]["KuCun"].ToString())> 0)
                      { %>
                    <p class="integral_exchange_link"><a href="integral_red_exchange.aspx?id=<%=proHongbao.Rows[i]["Id"] %>&p=1">兑换</a></p><%}
                      else
                      { %>
                    <p class="integral_exchange_link_over">已兑完</p>
                    <%} %>
                </li> 
                <%}
              } %>
            </ul>
        </div>
        <!--Area01Right-->
    </div>
    <!--Area01-->
    <!--Area02-->
    <div class="integral_index_area">
        <!--Area02Left-->
        <div class="integral_index_left">
            <uc3:Integral_Red ID="Integral_Red1" runat="server" />
            <uc4:Integral_Contact ID="Integral_Contact1" runat="server" />
        </div>
        <!--Area02Left-->
        <!--Area02Right-->
        <div class="integral_index_right">
            <h2 class="integral_index_right_title"><a name="star2"></a> 积分换实物礼品</h2>
            <ul class="integral_index_list">
            <%if (proShiwu != null && proShiwu.Rows.Count > 0)
              {
                  for (int i = 0; i < proShiwu.Rows.Count; i++)
                  {%>
                <li>
                    <div class="integral_index_listimg"> 
                        <img src="..<%=proShiwu.Rows[i]["ImageUrl_bigger"]%>"  height="105px" width="190px"/> </div>
                    <p class="integral_p"><%=proShiwu.Rows[i]["Title"]%></p>
                    <dl>
                        <dt><%=proShiwu.Rows[i]["Price"]%></dt>
                        <dd>剩余<%=proShiwu.Rows[i]["KuCun"]%>个</dd>
                    </dl> 
                    <%if (Convert.ToInt16(proShiwu.Rows[i]["KuCun"].ToString()) > 0)
                      { %>
                    <p class="integral_exchange_link"><a href="integral_red_exchange.aspx?id=<%=proShiwu.Rows[i]["Id"] %>&p=1">兑换</a></p><%}
                      else
                      { %>
                    <p class="integral_exchange_link_over">已兑完</p>
                    <%} %>
                </li> 
                <%}
              } %>
            </ul>
            <!--1End-->
            <h2 class="integral_index_right_title"><a name="star3"></a> 积分换优惠劵</h2>
            <ul class="integral_index_list">
                <%if (proyouhui != null && proyouhui.Rows.Count > 0)
              {
                  for (int i = 0; i < proyouhui.Rows.Count; i++)
                  {%>
                <li>
                    <div class="integral_index_listimg"><img src="<%=proyouhui.Rows[i]["ImageUrl_bigger"]%>"   height="105px" width="190px"/></div>
                    <p class="integral_p"><%=proyouhui.Rows[i]["Title"]%></p>
                    <dl>
                        <dt><%=proyouhui.Rows[i]["Price"]%></dt>
                        <dd>剩余<%=proyouhui.Rows[i]["KuCun"]%>个</dd>
                    </dl> 
                    <%if (Convert.ToInt16(proyouhui.Rows[i]["KuCun"].ToString()) > 0)
                      { %>
                    <p class="integral_exchange_link"><a href="integral_red_exchange.aspx?id=<%=proyouhui.Rows[i]["Id"] %>&p=1">兑换</a></p><%}
                      else
                      { %>
                    <p class="integral_exchange_link_over">已兑完</p>
                    <%} %>
                </li> 
                <%}
              } %>
            </ul>
            <!--2End-->
            <h2 class="integral_index_right_title"><a name="star4"></a> 积分换虚拟道具</h2>
            <ul class="integral_index_list">
               <%if (prodaoju != null && prodaoju.Rows.Count > 0)
              {
                  for (int i = 0; i < prodaoju.Rows.Count; i++)
                  {%>
                <li>
                    <div class="integral_index_listimg"><img src="<%=prodaoju.Rows[i]["ImageUrl_bigger"]%>"   height="105px" width="190px"/></div>
                    <p class="integral_p"><%=prodaoju.Rows[i]["Title"]%></p>
                    <dl>
                        <dt><%=prodaoju.Rows[i]["Price"]%></dt>
                        <dd>剩余<%=prodaoju.Rows[i]["KuCun"]%>个</dd>
                    </dl> 
                    <%if (Convert.ToInt16(prodaoju.Rows[i]["KuCun"].ToString()) > 0)
                      { %>
                    <p class="integral_exchange_link"><a href="integral_red_exchange.aspx?id=<%=prodaoju.Rows[i]["Id"] %>&p=1">兑换</a></p><%}
                      else
                      { %>
                    <p class="integral_exchange_link_over">已兑完</p>
                    <%} %>
                </li> 
                <%}
              } %>
            </ul>
            <!--3End-->
        </div>
        <!--Area02Right-->
    </div>
    <!--Area02-->
</asp:Content>
